package great.project.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
public class ConfigClientController {

	@GetMapping("/test")
	public String test() {
		return "你好";
	}

	@GetMapping("/begin")
	public String test2() throws InterruptedException {
		while (true) {
			MathGame game = new MathGame();
			game.run();
			TimeUnit.SECONDS.sleep(1);
		}
	}
}